package com.zhangqiancheng.wcdmaconsole;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Toast;

import com.zhangqiancheng.wcdmaconsole.R;

public class SysActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_sys);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {

	// Inflate the menu; this adds items to the action bar if it is present.
	getMenuInflater().inflate(R.menu.sys, menu);
	return true;
    }

    public void okButtonClick(View view) {

	Toast.makeText(getApplicationContext(), "参数已保存", Toast.LENGTH_SHORT).show();
	onBackPressed();
    }

    public void backButtonClick(View view) {

	// onKeyDown(KeyEvent.KEYCODE_BACK, null);
	onBackPressed();
    }

}
